package com.ytclub.subject.domain.convert;

import com.ytclub.subject.domain.entity.SubjectCategoryBO;
import com.ytclub.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 分类BO转换拦截器
 *
 * @author: HuangQi
 * @date: Created in 21:23 2023/12/14
 * @description: 拦截器
 */
@Mapper
public interface SubjectCategoryConverter {
    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);

    List<SubjectCategoryBO> convertBoToCategory(List<SubjectCategory> subjectCategoryList);

}
